package com.aust.test;

/**
 * 工具类
 */
public class UtilPerson {
    public static void print(Object object) {
        Class<?> aClass = object.getClass();
        if (aClass.isAnnotationPresent(Info.class)) {
            Info annotation = aClass.getAnnotation(Info.class);
            System.out.println("作者：" + annotation.author() + "日期：" + annotation.date());
        }

    }
}
